package com.example.blog.modules.article.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class ArticleResponse {
    private Long id;
    private String title;
    private String content;
    private String summary;
    private String coverImage;
    private String status;
    private Boolean isPublished;
    private Boolean isRecommended;
    private Boolean isOriginal;
    private String sourceUrl;
    private Long viewCount;
    private Long likeCount;
    private Long commentCount;
    private Long authorId;
    private String authorName;
    private String authorAvatar;
    private List<String> tags;
    private List<String> categories;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
} 